<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>发布新闻</h2>
<form action="AddNewsServlet" method="post">
    标题:<input type="text" name="title"><br>
    板块:<select name="boardid">
                <option>--请选择所属板块--</option>
             <c:forEach items="${boardList}" var="b">
                 <option value="${b.boardId}">${b.boardName}</option>
             </c:forEach>
        </select><<br>
    内容:<textarea name="context" id="" cols="30" rows="10"></textarea>
        <input type="submit" value="发布">
        
</form>
</body>
</html>